<?php
/**
 * Created by PhpStorm.
 * User: yangwang
 * Date: 2024-04-16
 * Time: 11:14
 */

namespace App\Kuafu\Shop\Model;


use App\Kuafu\Base\Model\BaseModel;

/**
 * App\Kuafu\Shop\Model\ShopRecordsModel
 *
 * @property int $id
 * @property int $shopId 门店ID
 * @property int $shopCode 门店code
 * @property int $staffCount 员工数
 * @property int $inShopStaffCount 到店员工数
 * @property int $cardAbnormalCount 证件缺失/异常
 * @property int $approvedCount 通过审核人数
 * @property int $rejectCount 驳回人数
 * @property int $pendingCount 待审核人数
 * @property int $aboutToExpireCount 即将过期人数
 * @property int $lastManagerUpdateTime 商家更新时间
 * @property int $lastAuditTime 最近审核时间时间
 * @property int $createdByUid 创建人
 * @property int $updatedByUid 更新人
 * @property int $createdAt 创建时间
 * @property int $updatedAt 修改时间
 * @property-read \App\Kuafu\Shop\Model\Shop|null $shop
 */
class ShopRecordsModel extends BaseModel
{
    protected $connection  = 'mysql';
    protected $table       = 'shop_records';
    protected $primaryKey  = 'id';

    public function shop():\Illuminate\Database\Eloquent\Relations\HasOne
    {
        return $this->hasOne(Shop::class,'id','shopId');
    }

}